package com.ruoyi.hospital.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 客户充值记录对象 customer_recharge_record
 * 
 * @author qichi
 * @date 2023-07-04
 */
public class CustomerRechargeRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 会员余额 */
    private Long id;

    /** 租户id */
    @Excel(name = "租户id")
    private Long tenantId;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    /** 客户id */
    @Excel(name = "客户id")
    private Long customerId;

    /** 充值余额 */
    @Excel(name = "充值余额")
    private BigDecimal balance;

    /** 充值类型 */
    @Excel(name = "充值类型")
    private Integer rechargeType;

    /** 充值时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "充值时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date rechargeTime;

    /** 赠送积分 */
    @Excel(name = "赠送积分")
    private Long integral;

    /** 充值遍号 */
    @Excel(name = "充值遍号")
    private String rechargeNo;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTenantId(Long tenantId) 
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId() 
    {
        return tenantId;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setCustomerId(Long customerId) 
    {
        this.customerId = customerId;
    }

    public Long getCustomerId() 
    {
        return customerId;
    }
    public void setBalance(BigDecimal balance) 
    {
        this.balance = balance;
    }

    public BigDecimal getBalance() 
    {
        return balance;
    }
    public void setRechargeType(Integer rechargeType) 
    {
        this.rechargeType = rechargeType;
    }

    public Integer getRechargeType() 
    {
        return rechargeType;
    }
    public void setRechargeTime(Date rechargeTime) 
    {
        this.rechargeTime = rechargeTime;
    }

    public Date getRechargeTime() 
    {
        return rechargeTime;
    }
    public void setIntegral(Long integral) 
    {
        this.integral = integral;
    }

    public Long getIntegral() 
    {
        return integral;
    }
    public void setRechargeNo(String rechargeNo) 
    {
        this.rechargeNo = rechargeNo;
    }

    public String getRechargeNo() 
    {
        return rechargeNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tenantId", getTenantId())
            .append("deptId", getDeptId())
            .append("customerId", getCustomerId())
            .append("balance", getBalance())
            .append("rechargeType", getRechargeType())
            .append("rechargeTime", getRechargeTime())
            .append("integral", getIntegral())
            .append("createBy", getCreateBy())
            .append("rechargeNo", getRechargeNo())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
